import React from 'react';
import {
    BasicLayoutProps,
} from '@ant-design/pro-layout';

import './app.less'

export const layout = (): BasicLayoutProps => {
    return {
        rightContentRender: () => <div>头部右边</div>,
        footerRender: () => <footer>页脚</footer>,
        onPageChange: () => {
            // const { currentUser } = initialState;
            // const { location } = history;
            // // 如果没有登录，重定向到 login
            // if (!currentUser && location.pathname !== '/user/login') {
            //     history.push('/user/login');
            // }
        }
    };
};